//
//  CellOfCollectionView.m
//  23-QQMusic
//
//  Created by ParkourH on 16/8/15.
//  Copyright © 2016年 ParkourH. All rights reserved.
//

#import "CellOfCollectionView.h"
#import "MVConllectionList.h"
#import "UIImageView+WebCache.h"

@interface CellOfCollectionView ()

@property (weak, nonatomic) IBOutlet UIImageView *imageViewOfUp;

@property (weak, nonatomic) IBOutlet UILabel *labelOfTitle;
@property (weak, nonatomic) IBOutlet UILabel *labelOfDetail;

@end

@implementation CellOfCollectionView

- (void)setCollectionListModel:(MVConllectionList *)collectionListModel {

    _collectionListModel = collectionListModel;
    
    NSURL *url = [NSURL URLWithString:collectionListModel.picurl];
    [self.imageViewOfUp sd_setImageWithURL:url placeholderImage:[UIImage imageNamed:@"guanggao"]];
    
    NSString *songAndSinger = [collectionListModel.mvtitle stringByAppendingFormat:@" - %@", collectionListModel.singername];
    self.labelOfTitle.text = songAndSinger;
    
    self.labelOfDetail.text = collectionListModel.mvdesc;
}


@end
